.danmu {
  color: $color-inner;
  background-color: $color-primary;
  position: fixed;
  right: 0;
  bottom: 140px;
  right: 17px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  line-height: 50px;
  text-align: center;
  box-shadow: -2px 2px 2px 2px rgba(255, 255, 255, 0.5);
  font-size: 14px;
  cursor: $cursor-pointer, pointer;
  transition: background-color 0.3s;
  z-index: 999;
}

@media (max-width: 551px) {
  .danmu {
    width: 40px;
    height: 40px;
    line-height: 40px;
    bottom: 120px;
    right: 5px;
  }
}

.danmuBox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.danmuBtn {
  display: inline-block;
  width: 50px;
  height: 24px;
  border-radius: 12px;
  background-color: #fff;
  font-size: 12px;
  line-height: 24px;
  text-align: left;
  vertical-align: top;
  cursor: pointer;
  color: #ccc;
  text-align: center;
  transition: all 0.3s;

  &.open {
    color: #fa0;

    .danmuCircle {
      background-color: #fa0;
    }
  }

  .danmuCircle {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 2px;
  }
}

.barrage .close.z {
  background-size: cover !important;
}